import os
import unittest
from htmltestreport import HTMLTestReport
from config import DIR_PATH

report_path = DIR_PATH + os.sep + "reports" + os.sep + "P2P_test_report.html"
suite = unittest.defaultTestLoader.discover("scripts", pattern="test*.py")
HTMLTestReport(report_path, title="P2P接口自动化测试", description="注册接口 -> 登录接口 -> 开户接口 -> 充接口值 -> 投标接口").run(suite)